<template>
  <div class="itemComponent">
    <div>{{ props.source.text }}</div>
  </div>
</template>

<script lang="ts" setup>
const props = defineProps({
  index: { // index of current item
    type: Number
  },
  source: { // here is: {uid: 'unique_1', text: 'abc'}
    type: Object,
    default () {
      return {}
    }
  }
})
</script>

<style lang="scss" scoped>
.itemComponent {
  position: relative;
}
</style>